<template>
<section>
<el-row :gutter="20">
	<el-col :span="24">
		<el-table :data="list" :stripe="true" class="mt" @row-click="dbclick" height="700">
			<el-table-column prop="id" label="ID"></el-table-column>
			<el-table-column prop="name" label="职位名称"></el-table-column>
		</el-table>
	</el-col>
</el-row>
</section>
</template>
<script>
import C from '@/common/common.js'
export default {
  name: 'userselectzhiwei',
  data () {
    return {
      list: []
    }
  },
  async mounted () {
    let res = await C.ajax('/organization/public/getplist')
    this.list = res
  },
  methods: {
    dbclick (row) {
      C.closeBrowserWindow(row)
    }
  }
}
</script>